@import "./variables.module.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./mixin.scss";
@import "./vxe-table.scss";

body {
  --color-primary: #3487ff;
  height: 100%;
  margin: 0;
  overflow: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  & > * {
    color: #333;
  }
  // .el-button{
  //   --el-text-color-regular: #333;
  // }
}

.is--primary {
  color: var(--color-primary);
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#main-app,
.app-main {
  & > div {
    height: 100%;

    & > [id^="__qiankun_microapp_wrapper_for_"] {
      height: 100%;
    }
  }
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: right;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.base-text-color {
  color: $--color-primary !important;
}

.base-bg-color {
  background-color: $--color-primary !important;
}

.base-red-color {
  color: #ff0000 !important;
}

.text-2-line {
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* 这里是超出几行省略 */
  overflow: hidden;
}

.el-message {
  z-index: 3000 !important;
}

body {
  .v-group > :last-child {
    border-radius: 0 4px 4px 0;
  }
}

//欧代英代标签pdf样式
.generate-pdf-uu-proxy .box {
  //font-size: 2.5em;
  padding: 8px;
  font-size: 14px;
  color: #000;
  border: solid 1px #333;
}
.generate-pdf-uu-proxy .box:nth-of-type(2) {
  border-top: unset;
}
.generate-pdf-uu-proxy .icon-box {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}
.generate-pdf-uu-proxy .icon-box img {
  width: 30px;
}

.cascader-wrapper-style {
  .el-input__inner {
    max-height: 30px !important;
    overflow: hidden;
  }
  .el-tag__content {
    span {
      font-size: 12px !important;
    }
  }
  .el-cascader__tags {
    display: flex;
    flex-wrap: nowrap;
    .el-tag--info {
      margin-left: 4px;
      padding: 0 2px 0 4px;
      .el-tag__close {
        margin-left: 2px;
      }
    }
    .el-tag--info.is-closable {
      flex: 1;
      max-width: 90px;
    }
    .el-cascader__search-input {
      min-width: 26px;
    }
  }
}
.main_notice_message {
  border-radius: 8px;
  .el-dialog__header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: linear-gradient(to right, #3487ff, #62baff) !important;
    padding-right: 15px;
  }
}

.v-page__body {
  background: var(--el-bg-color) !important;
  .vx-table__form-content {
    background: var(--el-bg-color) !important;
  }
}
// 选择框  可选中复制
.el-select {
  .is-disabled {
    cursor: pointer !important;
    pointer-events: auto !important;
  }
  .el-select__placeholder {
    z-index: 99;
    user-select: text;
  }
}

.el-input.is-disabled {
  .el-input__inner {
    cursor: pointer !important;
    pointer-events: auto !important;
  }
}
